import Mock from 'mockjs';

export default [{
		key: "/dict/all",
		method: "get",
		data: Mock.mock({
			'STATUS': "SUCCESS",
			'DATA': [{
				'code': 'zd001',
				'value': "@cword(2,3)",
			}, {
				'code': 'zd002',
				'value': "@cword(2,3)",
			}, {
				'code': 'zd003',
				'value': "@cword(2,3)",
			}, ]
		})
	},
	{
		key: "/dict/page",
		method: "get",
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					'current': 0,
					'size': 10,
					'pages': 6,
					'total': 55,
					"records|10": [{
						'code': /ZD[0-9][0-9][0-9][0-9][0-9][0-9][0-9][a-z][A-Z]/,
						'value': "@cword(2,4)",
						'type': "@cword(2,4)",
						'sorte': /[0-9]/,
					}]
				}
			});
		}
	},

	{
		key: "/dict/info",
		method: "post",
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {},
			});
		}
	},

	{
		key: "/dict/info",
		method: "put",
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {},
			});
		}
	},
	{
		key: "/dict/info",
		method: "delete",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': "",
			});
		}
	},
	{

		key: "/dict/info",
		method: "get",
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					'code': /ZD[0-9][0-9][0-9][0-9][0-9][0-9][0-9][a-z][A-Z]/,
					'value': "@cword(2,4)",
					'type': "@cword(2,4)",
					'sort': /[0-9]/,
				},
			});
		}


	},

	{
		key: "/region/info",
		method: "get",
		data: Mock.mock({
			'STATUS': "SUCCESS",
			'DATA': {
				region: {
					cricode: "@word",
					criname: "@cword(2,8)",
					lng: "116.405289",
					lat: "39.904987",
					scode: "@word"
				},
				"subs|3-7": [
					{
						cricode: "@word",
						criname: "@cword(2,8)",
						lng: "116.405289",
						lat: "39.904987",
						scode: "@word"
					}
				]
			}
		})
	},



];